<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('IntermediaryUser', 'IntermediaryUserController');
    $router->resource('consult','ConsultController');
    $router->get('liveRoom', 'LiveRoomController@liveRoom');
    $router->resource('live', 'LiveRoomController');
    $router->resource('collage', 'CollageController');
    $router->resource('slideshow', 'SlideshowController');
    $router->resource('AdminOrderController', 'AdminOrderController');
    $router->resource('IntermediaryUser', 'IntermediaryUserController');
    $router->resource('anchor','AnchorController');
    $router->get('intermediary','HouseController@intermediary');
    $router->resource('house','HouseController');
    $router->resource('house_attr','HouseAttrController');
    $router->prefix('api')->group(function ($router) {
        $router->get('city', 'CityController@city');
    });
    $router->put('change/{id}','HouseChange@change');
    $router->resource('OrderController', 'OrderController');
    $router->get('pass', 'HouseAuditController@pass');
    $router->get('reject', 'HouseAuditController@reject');
    $router->resource('HouseAuditController', 'HouseAuditController');
    $router->resource('navModule', 'NavModuleController');
    $router->resource('houseType', 'HouseTypeController');
});
